//
// Decompiled by Jadx - 445ms
//
package dq;

import android.app.Application;
import com.xuexiang.xhttp2.cache.model.CacheMode;
import de.aa;
import ds.d;
import java.util.concurrent.TimeUnit;
import kotlin.jvm.internal.i;
import okhttp3.x;
import retrofit2.Retrofit;

public final class a {
    public static volatile a a;
    public static Application b;
    public String c;
    public long g;
    public final x.a j;
    public final Retrofit.Builder k;
    public final d.a l;
    public final String d = "";
    public CacheMode e = CacheMode.NO_CACHE;
    public final long f = -1;
    public int h = 0;
    public int i = 500;

    public a() {
        x.a aVar = new x.a();
        this.j = aVar;
        dx.a aVar2 = new dx.a();
        if (!i.a(aVar2, aVar.u)) {
            aVar.ad = null;
        }
        aVar.u = aVar2;
        TimeUnit timeUnit = TimeUnit.MILLISECONDS;
        aVar.ae(15000L, timeUnit);
        aVar.af(15000L, timeUnit);
        aVar.ag(15000L, timeUnit);
        this.k = new Retrofit.Builder();
        d.a aVar3 = new d.a();
        aVar3.a = b;
        aVar3.g = new aa();
        this.l = aVar3;
    }

    public static a m() {
        n();
        if (a == null) {
            synchronized (a.class) {
                if (a == null) {
                    a = new a();
                }
            }
        }
        return a;
    }

    public static void n() {
        if (b == null) {
            throw new ExceptionInInitializerError("请先在全局Application中调用 XHttp.init() 初始化！");
        }
    }
}
